These scripts initialize gdb for remote debugging with either a flash image or a ram image.
With Eclipse, the scripts are added to the Zylin Embedded debug configuration under the Commands tab in the ‘Initialize’ commands field.
‘Initialize’ commands:
target remote localhost:3333 show remotetimeout set remotetimeout 180 monitor reset run_and_halt monitor sleep 500 monitor poll monitor flash probe 0 monitor flash erase_sector 0 0 26 monitor reset run_and_halt monitor sleep 500 monitor poll monitor flash write_image erase $UWDEVROOTHelloWorldLPC2378HelloW.hex 0 ihex monitor soft_reset_halt monitor arm7_9 force_hw_bkpts enable set language c break main set remotetimeout 10
‘Run’ commands:
continue
‘Initialize’ commands:
target remote localhost:3333 monitor reset monitor sleep 500 monitor poll monitor soft_reset_halt monitor arm7_9 sw_bkpts enable monitor mww 0xE01FC040 0x0002 monitor mdw 0xE01FC040
‘Run’ commands:
continue